package com.atguigu.springcloud.service.impl;  
  
import com.atguigu.springcloud.dao.PaymentDao;  
import com.atguigu.springcloud.entities.Payment;  
import com.atguigu.springcloud.service.api.PaymentService;
import org.apache.ibatis.annotations.Param;  
import org.springframework.beans.factory.annotation.Autowired;  
import org.springframework.stereotype.Service;  
import javax.annotation.Resource;  
  
@Service  
public class PaymentServiceImpl implements PaymentService {  
  
    @Autowired  
    private PaymentDao paymentDao;  
     
    public int create(Payment payment){  
        return paymentDao.create(payment);  
    }  
  
    public Payment getPaymentById( Long id){  
        return paymentDao.getPaymentById(id);  
    }  
}